package com.pinganfu.tesla.iwallet;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;

public class FastPayAgreementActivity extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_fast_pay_agreement);

		Button btnClose = (Button) findViewById(R.id.btn_close);
		btnClose.setOnClickListener(this);

		WebView webview = (WebView) findViewById(R.id.webView1);
		String url = "https://1qianbao.com/protocols/fastpayServiceProtocol?tm=" + System.currentTimeMillis();
		webview.loadUrl(url);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.btn_close :
				finish();
				break;
		}
	}
}
